import qs from 'qs'
import Devicesetdetail from '@v/devicemg/suballdevice/Devicesetdetail.vue'
export default {
    name: "Deviceset",
    components: {
        Devicesetdetail,
    },
    data() {
        return {
            keyId:this.$route.params.keyId,
            deviceId:this.$route.params.deviceId,
            activeNames:[0],
            listData:[],
        };
    },
    computed: {},
    watch: {
    },
    created() { 
        //console.log(this.keyId);
        //console.log(this.deviceId);
        this.inintDeviceSet();
    },
    mounted() { },
    methods: {
        inintDeviceSet(){
         var postData = {
             rowKey:this.keyId,
         }
         //../../../../../AICameraweb/static/deviceset.json 
         this.$http.post('/deviceCommonInfoController/deviceInfoConfiguration',qs.stringify(postData))
          .then((res) => {
              //this.listData = res.content;
              if(res.status == 200){
                //res.data.unshift(this.dataTop);
                 this.listData = res.data;
                 return false;
              }
            }).catch((err) => {
               console.log(err);
          });
        },
        handlePiano(val){},
    }
};